package com.ruoyi.cms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 栏目信息对象 cms_catalog
 * 
 * @author ruoyi
 * @date 2024-02-01
 */
public class CmsCatalog extends TreeEntity
{
    public static final String TYPE_NEWS = "news";
    public static final String TYPE_SINGLE = "single";
    public static final String TYPE_FILES = "files";
    public static final String TYPE_ALBUM = "album";
    public static final String TYPE_LINKS = "links";
    public static final String TYPE_FORM = "form";

    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 栏目代码 */
    @Excel(name = "栏目代码")
    private String code;

    /** 栏目名称 */
    @Excel(name = "栏目名称")
    private String title;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 上级栏目 */
    @Excel(name = "上级栏目")
    private Long pid;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String status;

    /** 允许下载 */
    @Excel(name = "允许下载")
    private String down;

    /** 每页数量 */
    @Excel(name = "每页数量")
    private Integer pager;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sorts;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDown(String down) 
    {
        this.down = down;
    }

    public String getDown() 
    {
        return down;
    }
    public void setPager(Integer pager)
    {
        this.pager = pager;
    }

    public Integer getPager()
    {
        return pager;
    }
    public void setSorts(Integer sorts)
    {
        this.sorts = sorts;
    }

    public Integer getSorts()
    {
        return sorts;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("title", getTitle())
            .append("type", getType())
            .append("pid", getPid())
            .append("status", getStatus())
            .append("down", getDown())
            .append("pager", getPager())
            .append("sorts", getSorts())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
